package com.ylxn.nio;

import java.io.RandomAccessFile;
import java.nio.ByteBuffer;
import java.nio.channels.FileChannel;

public class nioDemo01 {
    public static void main(String[] args) {
        //1，创建一个buffer
//        RandomAccessFile file = new RandomAccessFile("/cenghaile/demo.docx");
//        FileChannel channel = file.getChannel();
//        ByteBuffer buffer = ByteBuffer.allocate(1024);
    }
}
